package com.airlines.crewassignment.dao.basicinfo;

import com.airlines.crewassignment.entity.basicinfo.OvernightAirport;

import java.util.List;

/**
 * @author xxxx
 * @date 2018/06/05 10:53:58
 * @company xxxx Airlines
 * @description 
 */
public interface OvernightAirportMapper {

    /**
     * 添加 （返回主键ID）
     * @param overnightAirport
     * @return
     */
    int insert(OvernightAirport overnightAirport);


    /**
     * 物理删除
     * @param nightAirport
     * @return
     */
    int delete(String nightAirport);


    /**
     * 修改
     * @param overnightAirport
     * @return
     */
    int update(OvernightAirport overnightAirport);


    /**
     * 通过主键查询
     * @param nightAirport
     * @return
     */
    OvernightAirport get(String nightAirport);

    /**
     * 多条件查询
     * @param overnightAirport
     * @return
     */
    List<OvernightAirport> list(OvernightAirport overnightAirport);

    /**
     * 多条件模糊查询
     * @param overnightAirport
     * @return
     */
    List<OvernightAirport> listByFuzzy(OvernightAirport overnightAirport);
}
